Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13.0 #11

Merged
merged 92 commits into from
Nov 15, 2021
Merged

0.13.0 #11

merged 92 commits into from
Nov 15, 2021

Conversation

georgealways
Copy link
Owner

@georgealways georgealways commented Nov 13, 2021

Public facing changes: https://github.com/georgealways/lil-gui/blob/dev/Changelog.md#0130

Internal changes:

  • scripts/tests.js was getting too big. Now it's split into separate files under the tests dir.
  • NumberController's _initInput and _initSlider were cleaned up to be more consistent.


this._listenValuePrev = value;

this.updateDisplay();
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added these checks while testing a three.js example that had an uncheckable checkbox with listen(). I thought listen() was causing the checkbox to lose interactivity by updating the display every frame. The author's intent was actually to disable the controller by using a setter that could ignore assignment calls.

This code appeared to "fix the bug" because the value of input.checked would be allowed to change, while in truth it was out of sync with getValue(), and was never forced to updateDisplay() because the actual value never changed between frames.

@georgealways georgealways marked this pull request as ready for review November 15, 2021 12:23
@georgealways georgealways merged commit 2fbc73f into master Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant